<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "club_info".
 *
 * @property integer $club_id
 * @property string $image
 * @property string $name
 * @property integer $rank
 * @property integer $user_id
 * @property string $ts
 * @property integer $status
 */
class ClubInfo extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'club_info';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['rank', 'user_id', 'status'], 'integer'],
            [['ts'], 'safe'],
            [['image'], 'string', 'max' => 512],
            [['name'], 'string', 'max' => 12],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'club_id' => '俱乐部id',
            'image' => '俱乐部标识图',
            'name' => '俱乐部名字',
            'rank' => '俱乐部等级',
            'user_id' => '团长id',
            'ts' => '创建时间',
            'status' => '状态',
        ];
    }
}
